import fetch from 'utils/fetch';

// //查询所有省
// export function queryAllProvince() {
//     const data = {

//     };
//     return fetch({
//         url: 'http://192.168.0.104:8080/exue-education-web/edu/teacher/listProvince',
//         method: 'post',
//         data
//     });
// }
// //查询所有市
// export function queryAllCityByProvinceId(provinceId) {
//     const data = {
//         provinceId
//     };
//     return fetch({
//         url: 'http://192.168.0.104:8080/exue-education-web/edu/teacher/listCity/',
//         method: 'post',
//         data
//     });
// }
// //查询所有区
// export function queryAllAreaByCityId(cityId) {
//     const data = {
//         cityId
//     };
//     return fetch({
//         url: 'http://192.168.0.104:8080/exue-education-web/edu/teacher/listArea',
//         method: 'post',
//         data
//     });
// }


//查询所有省
export function queryAllProvince() {
    const data = {
    };
    return fetch({
        url: '/common/queryAllProvince',
        method: 'post',
        data
    });
}
//查询所有市
export function queryAllCityByProvinceId(provinceId) {
    const data = {
        provinceId
    };
    return fetch({
        url: '/common/queryAllCityByProvinceId',
        method: 'post',
        data
    });
}
//查询所有区
export function queryAllAreaByCityId(cityId) {
    const data = {
        cityId
    };
    return fetch({
        url: '/common/queryAllAreaByCityId',
        method: 'post',
        data
    });
}
//根据名称模糊查询学校名称
export function querySchoolByName(schoolName) {
    const data = {
        schoolName
    };
    return fetch({
        url: '/school/listSchoolByName',
        method: 'post',
        data
    });
  }
//根据学校查班级
export function listClassBySchoolId(schoolId) {
    const data = {
        schoolId
    };
    return fetch({
        url: '/eduClass/listClassBySchoolId',
        method: 'post',
        data
    });
  }


//   //根据名称模糊查询学校名称
// export function querySchoolByName(schoolName) {
//     const data = {
//         schoolName
//     };
//     return fetch({
//         url: '/school/listSchoolByName',
//         method: 'post',
//         data
//     });
//   }
